<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2019/11/4
  Time: 21:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.min.js"></script>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>河大附幼选课系统</title>
    <style type="text/css">
        *{
            padding: 0;
            margin: 0;
        }

        .login{
            width: 100%;
            height: 100%;
            /*margin-left:15%;*/
            /*margin-top: 100px;*/
            opacity: 0.7;
            background-color: white;
            position: absolute;
        }
        .loginTitle{
            width: 100%;
            /*text-align: center;*/
            color: #5CACEE;
            font-size: 30px;
            font-family: KaiTi;
            margin-top: 2%;
        }
        .password{
            width: 60%;
            margin-left: 15%;
            margin-top: 5%;
            text-align: center;
            font-size: 20px;
            font-family: KaiTi;
            color: #5CACEE;
        }

        input::-webkit-input-placeholder{
            color: #5CACEE;
        }
        .btn_login{
            width: 20%;
            height: 32px;
            margin-left: 24%;
            border: none;
            outline:none;
            background-color: #5CACEE;
            color: white;
            cursor:pointer;
        }
        .btn_reset{
            width: 20%;
            height: 32px;
            margin-left: 12%;
            border: none;
            outline:none;
            background-color: #5CACEE;
            color: white;
            cursor:pointer;
        }
        button:hover{
            background-color: #0099FF;
        }
    </style>

</head>
<body>
<div class="login">
    <div class="loginTitle">
        <button onclick="window.history.go(-1);" class="btn btn-warning"  style="font-size: 20px;position: relative;left: 20px">⬅</button>
        <b style="position: relative;left:300px">学生添加界面</b>
    </div><br><br>
    <div class="password">
        <form action="../admin/updateStu">
            <input type="text" name="id" value="${student.id}" hidden/>
            姓名:<input type="text" name="stu_name" id="stu_name" value="${student.stu_name}" autocomplete="off"/>
            账号:<input type="text" name="stu_account" id="stu_account" value="${student.stu_account}" autocomplete="off"/><br><br>
            密码:<input type="password" name="stu_password" id="stu_password" value="${student.stu_password}" autocomplete="off"/>
            性别:<input type="text" name="stu_sex" id="stu_sex" value="${student.stu_sex}" autocomplete="off"/><br><br>
            年级:<input type="text" name="stu_grade" id="stu_grade" value="${student.stu_grade}" autocomplete="off"/>
            班级:<input type="text" name="stu_class" id="stu_calss" value="${student.stu_class}" autocomplete="off"/><br><br>
            休学:<input type="text" name="stu_status" id="stu_status" value="${student.stu_status}" autocomplete="off"/>
            留级:<input type="text" name="stu_repeater" id="stu_repeater" value="${student.stu_repeater}" autocomplete="off"/><br><br>
            <button type="submit" class="btn_login">提交</button>
            <button type="reset" class="btn_reset">重置</button><br>
        </form>
    </div>
</div>
</body>
<script type="text/javascript">
    var msg = ${msg};
    if (msg==2){
        alert("添加成功");
    }
    if(msg==3){
        alert("添加失败")
    }
    if(msg==4){
        alert("修改失败");
    }
    if(msg==5){
        alert("修改成功!");
    }
</script>
</html>
